#pragma once
#include <iostream>

#include "hashbucket.h";

using namespace std;

void test1()
{
	MyHashBucket::Hash_Bucket<int, int> hash_b1;
	for (int i = 100;i < 200;i++)
	{
		hash_b1.insert({ i,i });
	}
	/*for (int i = 1100;i < 1200;i++)
	{
		hash_b1.insert({ i,i });
	}
	for (int i = 2100;i < 2200;i++)
	{
		hash_b1.insert({ i,i });
	}
	for (int i = 3100;i < 3200;i++)
	{
		hash_b1.insert({ i,i });
	}
	for (int i = 4100;i < 4200;i++)
	{
		hash_b1.insert({ i,i });
	}
	for (int i = 5100;i < 5200;i++)
	{
		hash_b1.insert({ i,i });
	}*/
	std::cout << hash_b1.__stl_next_prime(hash_b1._n) << std::endl;
	std::cout << hash_b1._n << std::endl;

	for (auto it : hash_b1._table)
	{
		if (it)
		std::cout << it->_data.first << "---";
	}

	
}

int main()
{
	test1();
	return 0;
}